package org.hospital.entity;
// default package

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * Department entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="department"
    ,catalog="hospital"
)

public class Department  implements java.io.Serializable {


    // Fields    

     private Integer departmentId;
     private Integer clinicId;
     private Integer employeeId;
     private Integer creatorId;
     private String name;
     private String phone = "null";
     private Timestamp createTime;


    // Constructors

    /** default constructor */
    public Department() {
    }

	/** minimal constructor */
    public Department(Integer clinicId, Integer employeeId, Integer creatorId, String name, Timestamp createTime) {
        this.clinicId = clinicId;
        this.employeeId = employeeId;
        this.creatorId = creatorId;
        this.name = name;
        this.createTime = createTime;
    }
    
    /** full constructor */
    public Department(Integer clinicId, Integer employeeId, Integer creatorId, String name, String phone, Timestamp createTime) {
        this.clinicId = clinicId;
        this.employeeId = employeeId;
        this.creatorId = creatorId;
        this.name = name;
        this.phone = phone;
        this.createTime = createTime;
    }

   
    // Property accessors
    @Id @GeneratedValue
    
    @Column(name="departmentId", unique=true, nullable=false)

    public Integer getDepartmentId() {
        return this.departmentId;
    }
    
    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }
    
    @Column(name="clinicId", nullable=false)

    public Integer getClinicId() {
        return this.clinicId;
    }
    
    public void setClinicId(Integer clinicId) {
        this.clinicId = clinicId;
    }
    
    @Column(name="employeeId", nullable=false)

    public Integer getEmployeeId() {
        return this.employeeId;
    }
    
    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }
    
    @Column(name="creatorId", nullable=false)

    public Integer getCreatorId() {
        return this.creatorId;
    }
    
    public void setCreatorId(Integer creatorId) {
        this.creatorId = creatorId;
    }
    
    @Column(name="name", nullable=false, length=50)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="phone", length=50)

    public String getPhone() {
        return this.phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
    @Column(name="createTime", nullable=false, length=19)

    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
   








}